$primary-color: #2a82e4;
$primary-color-back: #dbeaff;
$primary-linear-one: #4a77ee;
$primary-linear-two: #74acff;
$input-border-color: #a6a6a6;

.header {
  background-color: #fff;

  .con {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    width: 1600px;
    margin: 0 auto;

    .left {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;

      .logo {
        width: 100px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
      }

      .title {
        .tit {
          font-weight: bold;
        }
      }
    }

    .right {
      display: flex;
      flex-direction: column;
      align-items: flex-end;

      .con-a1 {
        height: 50px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;

        input {
          border: solid 1px $input-border-color;
          border-radius: 5px;
          padding-left: 10px;
          width: 160px;
        }

        .btn {
          color: $primary-color;
          margin-left: 5px;

          &:hover {
            cursor: pointer;
          }
        }
      }

      .con-a2 {
        height: 50px;
        .navs {
          display: flex;
          flex-direction: row;
          justify-content: flex-start;
          align-items: center;

          .nav {
            position: relative;
            margin-left: 80px;
            line-height: 50px;

            .tit {
              text-align: center;
              font-weight: bold;
              &.current{
                color: $primary-color;
              }
              &:hover {
                cursor: pointer;
                color: $primary-color;
              }
            }

            .sub {
              position: absolute;
              top: 100%;
              left: 50%;
              width: 120px;

              background-color: #fff;
              border-bottom-left-radius: 5px;
              border-bottom-right-radius: 5px;
              display: flex;
              flex-direction: column;

              transform: translate(-50%, 0);
              z-index: 999;
              overflow: hidden;

              a {
                text-align: center;
                line-height: 0px;
                font-size: 12px;
                transition: all .3s;
                color: #fff;
              }
            }

            &:hover {
              .sub {
                a {
                  line-height: 30px;
                  color: #000;

                  &:hover {
                    color: $primary-color;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

.header-phone {
  display: none;
  justify-content: center;
  align-items: center;

  .con {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    position: relative;
    z-index: 999;

    .menuBtn {
      width: 40px;
      height: 40px;
      padding-left: 10px;
      cursor: pointer;
      transition: .3s;
      -ms-transition: .3s;
      -moz-transition: .3s;
      -webkit-transition: .3s;
      -o-transition: .3s;
      display: flex;
      flex-direction: column;
      justify-content: center;

      span {
        display: block;
        height: 4px;
        background-color:$primary-color;
        margin: 2px 4px;
        transition: .3s;
        -ms-transition: .3s;
        -moz-transition: .3s;
        -webkit-transition: .3s;
        -o-transition: .3s;
        position: relative;
      }

      span::before {
        content: "";
        display: inline-block;
        position: absolute;
        left: -7px;
        top: 50%;
        transform: translate(0, -50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background-color: $primary-color;
        //background-color: #333;
      }
    }

    .menuBtn.open span {
      display: none;
      margin: -5px 0 0;
      position: absolute;
      left: 5px;
      top: 24px;
      width: 30px
    }

    .menuBtn.open span:first-child {
      display: block;
      -moz-transform: rotate(45deg);
      transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      -o-transform: rotate(45deg);
      -ms-transform: rotate(45deg)
    }

    .menuBtn.open span:last-child {
      display: block;
      -moz-transform: rotate(-45deg);
      transform: rotate(-45deg);
      -webkit-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg)
    }

    .menuBtn.open span::before {
      display: none;
    }

    .logo {
      width: 80px;
    }

    .right {
      width: 40px;
      height: 40px;
    }
  }



  .nav {
    position: absolute;
    width: 100%;
    top: -310px;
    z-index: 99;
    background-color: #ffffff;
    font-size: 12px;
    transition: all .3s;

    .list {
      display: flex;
      flex-direction: row;
      justify-content: flex-start;
      align-items: center;
      flex-wrap: wrap;
      padding: 20px 0 0 0;
      box-shadow: #a8a8a8 0 5px 5px -5px;

      .li {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 33.333333%;
        margin-bottom: 20px;

        .icon {
          width: 50px;
          margin-bottom: 5px;
        }

        .txt {
          font-size: 12px;
        }
      }
    }
  }

  .navv {
    top: 0%;
    transform: translate(0, 40px);
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
}

.headerFix {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #ffffff;
}

@media only screen and (max-width: 1600px) {
  .header {
    .con {
      width: 95%;

      .right {
        .con-a2 {
          .navs {
            .nav {
              margin-left: 30px;
            }
          }
        }
      }
    }
  }
}

@media only screen and (max-width: 1199px) {
  .header {
    .con {
      .left {
        .title {
          .txt {
            display: none;
          }

        }
      }
    }
  }
}

@media only screen and (max-width: 960px) {
  .header {
    .con {
      justify-content: flex-end;

      .left {
        display: none;
      }
    }
  }
}

@media only screen and (max-width: 769px) {
  .header {
    display: none;
  }

  .header-phone {
    display: block;
    color: #333;
  }
}